package com.controller;


import com.controller.base.BaseLocalController;
import com.entity.SysUser;
import com.facade.user.r.ISysUserFacadeR;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/sysUser")
public class SysUserController extends BaseLocalController {

    private static final Logger LOG = LoggerFactory.getLogger(SysUserController.class);

    @Resource
    private ISysUserFacadeR sysUserFacadeR;

    @RequestMapping("/getAll")
    public String showUser(Model model) {
        List<SysUser> all = sysUserFacadeR.findAll();
        model.addAttribute("user", all);
        return "user/user";
    }




}
